package com.ruoyi.user.dto;

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class UploadAvatarDTO {

    @NotBlank(message = "用户id不能为空")
    private String userId;

    @NotNull(message = "文件不能为空")
    private MultipartFile file;
}
